from django.db import models
from .__baseModel import BaseModel, MyModelManager

class User(BaseModel):
    name = models.CharField(null=True, max_length=20, unique=True)
    password = models.CharField(max_length=50, null=True)
    token = models.CharField(max_length=50, blank=True, null=True, db_comment='登录凭证')
    mobile = models.CharField(max_length=20, null=True)
    city = models.CharField(max_length=20,null=True)
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.name
